package com.lq.ecoldchain.ui.forgetpwd

import com.lq.ecoldchain.base.CommonLoadingViewModel
import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2018/12/23 0023  17:29
*function by lq
*/
const val PWD_MODULE_TAG = "forget_pwd_module"

val pwdkodeinModule = Kodein.Module(PWD_MODULE_TAG) {

    bind<PwdViewModel>() with scoped(AndroidLifecycleScope).singleton {
        PwdViewModel()
    }

    bind<ForgetPwdDelegate>() with scoped(AndroidLifecycleScope).singleton {
        ForgetPwdDelegate(instance())
    }
}